package nml.mail.reg.smtp;


import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  yandex_com extends Reg{

	public void reg(String username, String password) {		
		

		String url = "http://passport.yandex.com/passport?mode=register&msg=mail&retpath=http%3A%2F%2Fmail.yandex.com%2F%3F";
		get(url);
		
		dr.findElement(By.name("iname")).sendKeys("Mac");
		dr.findElement(By.name("fname")).sendKeys("Chris");
		
		dr.findElement(By.name("login")).sendKeys(username);
		
		dr.findElement(By.cssSelector(".b-form-button__input")).click();
		
		dr.findElement(By.name("passwd")).sendKeys(password);
		dr.findElement(By.name("passwd2")).sendKeys(password);
		
		dr.findElement(By.name("hintq")).sendKeys("Your favorite food");
		
		dr.findElement(By.name("hinta")).sendKeys("toooommmm");
		
		
		dr.findElement(By.name("code")).click();
		
		
		System.out.println(username+"@yandex.com");

	}

	public static void main(String[] args) {
		new yandex_com().reg("qq1331798654", "qq3131798654");
	}
	
	
}
